Changed the timing of applying default style.