Fixed curl call