Fixed to remove url deprecation warning.