fix bugs on recent and open files.