fixed non-zero time bug