fix some warning.