Fixed a problem with hashing state strings.