fixes boolean behaviour
Merge pull request #1970 from Pomax/booleanfix

fixes boolean behaviour