Fix reference to 'rates' variable.