Fixing time range drawing.