Fixed an issue with swapping nodes in the openset