fix typo after changing function parameter name