Fallback to the previous URL on error. Fix #5