fix double ratio