Fixed an issue with XML unit value retrievals.