Fixed some bugs (assigning wrong vertex/face index), but the Why-are-these-random-faces-missing bug is still not fixed.