fixing negative system time bug