fixed: undefined offset