fixed handling of non-registered types