fixed a merge issue, call getDataItem before getItemMetadate