fix ALMA gallery bug