Boolean bug fix Fixes #21