Fix can not use form_state as an array.