Fix ternary logic inversion

@axelstudios