Fixing setState

How did it ever work?