Corrected some warnings.