Bugfix: The formula factory constructor was incorrect.

It was calling an other function that was overriden in the subclasses.