Fixed the problem in the form's __init__() method.