fix rare media cache bug

--HG--
branch : 0.8