solve the checkbox problem