fixing error in media template