Fix for gallery