Fixed bug that would occur on file deletion, in Windows