fix empty field error