fixed curl handle leakage