Flipped condition to fix left-over bug