fixed bug when field empty