fixed invalid redirects