User model error fix