Fixed a bug where file were being added to recent files but not removed.