There was a problem with the stockout counter; it would actually fail to work in the clear-last market but it was never a problem because (a) I do everything with inventories anyway (b) The initial price was always high so that the stockouts were actually never used anyway.

Created a simpler stockout that counts customers and works fine, even when i scramble prices. Still, thank god I switched to inventories when I did