minor fixes in mesh