mk-pgparam: fix logical error .

- also fix typo of pgparam_handler.