fixed string to boolean bug