fix warnings due to mesh_rotate