fixed bug in CanonicalFactory:
the creation of the canonical object was faulty.