fix composite dataset factory cast