fix offsets for arch