Fixed nesting grid elements.