Added check to mapping package -> mod id.