fix a warning in time