Fixed issue where $this was undefined on form submit

Use 8ad01ba