Fixed bug where xml metadata wasn't being retrieved properly.