fixed type error in xirr