Fixed a bug when coins were restocked while the machine was on