fixed hidden field flag logic