fixes bug redirect url