fix a recursion error processing windows