Just wanted to point out the solution for those of you that might be interested: "Maybe you have forgotten to change vertex_dist[1090] to a new value?". This is what I've asked Nemisis in an email.