fix exception raise in dispatch