Bug with maximum amount of items allowed to cook

If I can cook multiple items, for example: 17x Mushroom and Meat Curry, then when I use a bonfire, the game allows me to cook a maximum of 10 items. After that I can cook 5 more items, then 1 more item, and finally the last item.

It looks like the maximum amount that we can cook is always halved.