Fix bug which made removal of overlays impossible