fixed bug where get_rate returned default rate if rate was 0