fix log blob length generation