Fixes non-Ajax submissions.