Fix duplicate axes in grid