fix typo, should be using function arg not static value