Bug fix in User.create_from_hash