Fixed bug with media uploader