Fixed an error in plugin lastModified where the cursor would not go back to its original placement