Never mind the problem was in my code - /I was not counting correctly the vertices :-)/ Everything works as expected .