fix issue where nodes were disappearing