Fixed bug when group.remove is called when the cursor is on the last children index.