Fixed an issue with unequal len(values) and len(times)