Fixed error in redirect.