patch for the timestamp history bug