fix matchMedia dep for some browsers