Fixed bug in firefox regarding reading and setting values of checkboxes