Fix preselected check display

when an element has been prechecked its state was good but the dom did not reflect its stat