bugfixes to UserProfiles integration