fix bug get lastest version api