fix api ratio