Fixed bug in userprofile