fixed css lines and rect nesting.