Fixed the overlays not updating correctly