Fixed some type warnings.