Bugfix: a factory was not created using the new constructor.