fixing issues in marked to non-marked xpath conversion