fix small issue created when peacock was changed

 in #2781