Found and fixed bug with mesh plotting