Fixed Mediapackage XML generation