Fix wrong assertion condition.