Fixed inverted conditions