Reset the hash if it's invalid.