fixed the deleting of the rod on the edges.