fix form controller bug