Fix VM state returning to previous one due to a conflict with sync