Fixed a potential crasher in the form view controller.