Fix client crash when holding space and adding a group in editor