fix bug which can cause a journal read error