Fixed overlapping time crash in script