Fixed generate() for hidden input field types