Fix curl call