Fix caldata offset detection.