Sounds stop playing after 2/3 stimuli when running the experiment several times

Found the solution in an older thread on this site.
Go to
C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\sound\backend_sounddevice.py
then go to line 199
change text from
self.sounds.remove(thisSound)
to
self.remove(thisSound)
Fixed my problem.
Here is the link to the original thread.