fix bug with user model