Fallback to state name when state not found.

Fixes #12