Fixed some minor warnings.