Bugfix of bool conversion