Fix bug #9296. The key may be multiple keys.

(cherry picked from commit 080a4d84e295db1f2c2589af46fcfa981a716406)