Fixed  new groups incorrectly always adding with a z index of 0