fix #7169 (replace zeta function with new implementation)