fix hidden field bug