Remove startNode and endNode