fix inverted boolean