fixed some bugs in text log impl