Fixed create_node function so it does not ignore a box number when it is specified