Fix boolean cocersion