fix offsets