This is client side bug from old version (almost 15 years). Don't think so that requires fixed immediately.in the Macro, the change of a potion (1slot) to the next potion (next slot), cannot be automatically.
so if you click potion in macro, they are gone from macro.