fix api detail like number logic