fix a signed and unsigned integer comparison. As your meshes get larger, this type of error will bite.