Fix missing negation of assert statement