fix use correct version API