Corrected a few warnings.