Fixes in profileService

Fixes in profileService