Fixed a bool conversion issue.