Fixed exception message when dispatching commands