fixed variable bugs
offset fix