Ensure proper type of Z

Fixes an odd bug with fuzzy RD.