fixed bug that prevent media items from being uploaded