fix checkbox selection in tables