Fixed the glitch with negative timestamps.