set current time to zero  if ended