fixes issue with viewing profiles