Fixed some bugs in the process of gathering VM status.