fix url connect bug