Fix variable error in curl connector