Fixed offset parsing bug