fixed Grid constructor error