fixed warnings.