time-lapse counter bugfix