fix curry.adapt