add lucene bug workaround