Fixed a wrong assert condition.