fix a problem in renderItemToItem & add corresponding test  case