fix media paths