fix old version api