Fixed small bug on profile view

Had introduced bug in previous commit. Whoops.