checkbox active

bug with if/else