Fixed a bug where time 0 could take longer than 0