Make sure hash is valid if not reset