Dedicated handling for input[type=hidden]
Fix logic error