fix typo in pad function call