fixed a bug with span sizes of grid layouts