Fixed inverted boolean issue