fixed type for bug #78