Deal with misordered styles