Updated code to work with nu.xom  version 1.2.5