fix for max_rate