latest gallery fixes