fix typo in postResult function