more fixes for autoedit on windows