got a correct distance field genearting.
distance field can now be saved