bug fix of creating url