Fix DND errors on windows