Make boolean attributes work as expected.