Fixed loop counter when going through points of simplex