Fixed infinite redirect