getElementByXpath returns first visible element, not last.

Style fixes.