Fixing email when something wrong with rates array