Fixing inconsitences on whoosh backend.