update exception assertion
fix bug