Fixed gallery parsing.