Added error handling to rates if no rate value is found