fix a compiler warning (assert)