fix concurrency bug
Merge pull request #1 from SuperTux88/master

fix concurrency bug