fix boolean type