Fix data type of nodes.