Fixing bool conversion