Fixed bug related to height when collapsing nodes in the extended box