fix log Warning