Fixed bug in Grid.

Bug came from Moonlight. Fixes #3.