fix hang on failed history completing