Modify way of assert #148