Fix for issues with certain types of media queries