fix location redirect