Resolve classes properly when checking from other namespaces