fix assert error