fixed a stupid bug in assign_UID