Moving clearing of layerChangeIntervals to better support re-entrance in stitching