Fixed get_mesh_size