fix for bad timespan