Fixed never-ending redirect.