fix bug when save grid sdf into mesh