fixed a few ApplyStyle issues