fix to zeroTime check