assertion typo fix

small typo fix to prevent compilation error with -UNDEBUG