fixed some bug of creating the node