bug fix in setting itemId