fix some warning messages