fix some predo bugs