Fixed bool variable assignment
Merge pull request #1 from kpj/master

Fixed bool variable assignment