fixed bug in 20fee6769eaa07b12969b358b18e87160ea301a8 that causes updateCompleteById to run on failure