Fixed a potential crash with the form view controller.