fix exception re-order