error in dealing with hidden fields