fix bugs

set value before field.setText