fix cached offsets