Fix bad params in OnPublicCall()

This fixes a bug introduced in commit 0dc90c645e0d73d1c92a51e8efd20021ac399a10.