fixed Lucene related issues.