fixed a copy pasta error in and closing nodes.