fixes nested hidden inputs