fix crash when number fields are empty