Fix nested colors in svg parsing.