Fix boolean type