Fix boolean error