Fix cascading order bug

Media query rules should pack into later rule.