get rid of intermittent error due to misuse of add_node