Fix typo in redirect handling