fix url space bug