base: fix offsets