Pass correct argument to invalid callback