Fixing curl call