Fixed error in Grid class