fix errors in profiles page