Fixed typo in displaypub

Regression introduced in #4229