Fixed the typo in resetClassStyle (#4971)