Fix type on stateText variable.

I'm sure I already pushed this change...