Fixed undefined variable in assertion condition.