Bugfix in preselecting checkboxes