fix boolean types