Fix formulas not picking up surrounding style when more than 1 class was present.