Fixed logic in determine_novelty.py