fix paths for Windows
workaround a bug somewhere, culprit of some 'None' instead of None