fixes single file selection mode on Windows