fixed node_type lower and upper case issue