Fixed curl problem