Bug fix on boolean types