bugfix on a redirect.