Fixed two minor bugs in the Text Caching System