Fixed false connection error when update is used and no groups have been chosen. Minor changes