fixed mesh generation issue