userId generation fix