Fixed the production error with the User class