fixing media dir production