Fix output buffering error

Causing duplicate form fields