boolean conversion fix