Bug in matchDocs