Fixed bug of checkboxes not selecting friends