correct the bug of open/save windows