Fixed bugs.
Updated warning if no file with saved text found.