fixed curl problem