Fix crash caused by dangling baseNode pointer