Corrected an error with time slicing