Fix bug of FormPanel.