Fix gallery update