fix bug with wrong url