Fix a typo that broke Pub support (and tests)

The typo was introduced in a last minute commit for #1514 while addressing review comments.

TBR