fix invalid time if stopped