another bug fix related to hiding/adding nodes