Fixing the checkboxes binding in the template