Fixed bugs for User.