Fix #639 rec/async error in Windows