fixed type mismatches.