fix user model, minor bug