fixed type cast mismatch.