Fix URL extraction