endxpath is wrongly returned as 'eend'