Fixed negative time bug