#4 Fixed class setting to not remove classes when the previous class equals the new class.