fix bug in ExtractEntities3