Fix incorrect boolean usage