fix type warnings