modify Path

change the node type of Path