fix bugs related with removing nodes