Clean up manifest files.
Make sure the cursor always has a Range.