Fix for photo gallery