Hopefully this fixes the "not an managed type" error for good