fix str->bool conversion