Fixed undefined url bug.