Added fix for keeping unsaved files' data.