fixed type warnings