fix some warnings.