undefinfed offset fix