Fix bug: invert booleans