fix reversion of checkbox bug. see bae1ca689be185d6d2f80459ca31f10aac15f78c