fix bad boolean usage