Fixed ordering of the application of the styles