fixed incorrect use of text->boolean conversion