Fixed bug in class Form.