fix Undefined variable url