loop log fix