fix error not a managed type