fix Github#issues. use State#name instead of toString