fix url not defined error