Fixed bug in 2Grid contract.