Small fix for boolean inputs

Commit message has full details.