Nevermind, I fixed everything simply by using triangles instead of polygons.