Fixed boolean conversion error