Fix incorrect keyTimes for some functions