fix assert issue