Fix groupdata of different groups saving to the same file