fixed: maybe crash when redo-log option closed