fixed mesh generation (exception for corrupted curvilinear elements)