Fixed bug where time is incremented when Overlay checkbox is clicked