fixed some warnings.