fix invocation to tail