remove problem with incorrect style ranges