Fix some bugs related to grid from many 3ds