user model bug fix