fix url path is empty bug