fix checkbox selection