fix bug on read log