Fix checkbox functional