Fix issue where bool was not flipped