fix get previous version