Fixes handling of bools