Fix user model definition bug