Fixed Gallerycontroller