fix url endpoint