fix errors caused by default url and prefix path