patch for datetimefinished bug