fix two compiler warnings.