Fixed a small grid bug