Fixed bug in an assertion mode.