You'll need to create a ticket and upload your metadata.db file so I can try to duplicate the problem. Go to the calibre bug tracker
to create a new bug report. You will need to create an account.
After creating the bug report, click the 'Add attachment or patch' button at the bottom, locate the metadata.db file in your calibre library folder and upload it. Once you've done that, I'll try to recreate the problem.