Small fix for redirect loop.