Fixed bug in UserProfile