Small fix to redirect code.