Fixed curryIt for new requirements from upstream.