Fixed boolean conversion in nodeToDict