Fixed inverted logic.