fix galleries