Fix undefined $item in AutoUpdate

I presume this is meant to be $data2