Fixed mistaken replacements with 'panel'

Fixes a couple of mis-replacements in #3724.