Fixed a bug where bookmarks were not being written to the new file.