fix error with lists: listIdGenerator must not be a local variable, in order to return different random numbers