fixing problem with media