fix tasks method of XML wrapper Media