[FIX] wrong percentage calculations in API