fix removing of debug overlays