fix assert bug