Fixed bug in the Time context manager