fix checkbox behavior