fix the pending spec with unscoped

Fixes #2703, can be cherry-picked for 2-2-stable and master as well.