remove useless invalidations