Fixed coding errors

There is a post on the forums that highlights some coding errors in the items.xml file which I have applied.