Fixed bug in storing VM's.