small bugfixes for the object creation