Fix for RTTextLogger producing empty text file