fixed redefined from 'tristate' to 'boolean error