Fix node and type string bug