Fixed redirect error introduced in last commit.