corrects grid origin