Fixing media files handling.