fixed error not dispatching
Merge pull request #3 from CaptainN/master

fixed error not dispatching