Prevent error caused by swap file setting in windows.