fix typo in guard api