Fix invalid argument passed to dispatch() method in __call() function