another fix for get_profile