fix some minor regression in media code