fixed bug in offset update
it exports bad the shape