Fixing an issue with profiles page