fixing media paths