Properly change uid