Error handling for no groups