Fix url not defined error