fix variable name bug in PhotosGateway