fixed issue with terminated node