Fix undefined url error.