fixed a possible bug, prepared sgs:vh4 for valgrind testing