Fixed the error

This should fix why redirects dont work