fixes the checkbox bug in ajax.