fix galley issues