Fix error at creating vm_thread adding a datacenter