Fix the error dispatcher not defined