[2.2] Ensure rate is double

Fixes #6442