Fixed small bug, check node.value exists