Fixed inverted boolean logic