fix undefined url var