fix inverted bool