fix: correctly handle multiple aliases under the same key