Fixes virtual machine memory