fixed null-pointer exception in peer group assignment