Grid size 0x0 issue fix 2