fix incorrect reference to function argument