Fix 2645 form submit delegation

Fix #2645 form submit delegation.
Sure, it's exactly the same, except the optimal syntactical brackets...