Minor bugfix for the User model