fix url reverse bug