Fixed error in time operations