Fixed error where checkboxes with name would not be selected correctly