fixed a bug that export window is blocked