fix illegal offset type