fixed a mistakenly inverted boolean check