fixed an enqueue_media bug