fixed bug in reset vm