fix boolean mode