Fixes to displaying user gallery in profile.