Fix error when related to nonpublic items.