Migrating vm's makes them zombies

I’m running OpenNebula 5.4.6 on Centos 7

After migrating several VM’s to a new datastore they now show up as zombies instead of vm’s under hosts. As a result they are not included in calculating allocated CPU or memory.

Is there anyway to correct this and make them show up as vm’s again?

Problem solved!

I resolved the issue by running onedb fsck. The Hosts are now listing all VM’s and the stats are showing the correct values.