fix define warnings in console.