fix random save bugs.