bugfix when creating new user