Some small fixes for userprofile