Fixed problem with string to boolean conversion