Fixed minor error in neighbor ordering