overlays would not be removed properly