make sure at least the first rewrite is a valid hash