fixed redirected urls error