fix exception not return bug