fixing media dir