Mesh creation bugs fixed.