fixed looping start time bug