minor fix for text reader