Fix inverted assert