Fix error if node create programmatically.