fix assert condition