fix lastversion