pb: fix bug introduced by a commit from libpomelo #18