Fixed code warnings.