fix cinterpolate so there's no segfault