minor error correction

assert condition correction.