fixed mergebarrier bugs with removing nodes