Fix order of styles resolving