Fix bad element type in StateField annotation.