fixed redirect from invalid url