Fix #1371.
Xpaths are fabulous.