fix galleries when logged in