fix itemEnd failure