Fixes problem with media