Fix the warnings of main module.