fixed galeries not displaying bug