Fix loading of generate_gallery after service call