However having looked at the file it seemed obvious that the key to my problem is the order in which the labels are created as all the labels are indexed and linked to a parent with an earlier index so I deleted and recreated all the labels in the correct order, as you suggest, and now it is ok.