Fix some problems when loading a node