Fixed a bug with media queries