Fixing problem with boolean conversion.