Fixes error in checkboxes.