toUrl bug solved