Corrected some bugs in the context generator LinkedOutEntitiesContext.