WriteFile class didn't sync