Fixed issue where checkboxes were appearing checked when they shouldn't have been