bug fix in parent_node adn sibling_node