Fixed a serious bug that will fetch wrong offsets.