fix renderStyle