Set uid during object create