Fixing media references