grid offset fix