Fixed gallery issue