uid generation fix

i even forgot i was going to work on that