fix log collector bugs