Fix dtrates array bug