extend_invoke: Fixed small type