Fix targetitem comparison