Fix faulty assert.