corrected wrong behaviour when crashing/inserting nodes