media -> resources fix