fixed definition of the $formFactory class variable