Fix bug of detecting live migration