Fixed boolean conversion