fix error with times

fix additional error with errors.New()