fixed several small SV bugs