Fix for lucene 4.9.0