Fixed variable names - gallery controller.