gallery 4 fix