Fixes the grid order
new version