Fix bug for loading form