fixed some type warnings