fix a assert bug (somes asserts has no end...)