fix bug when field is not passed