Fixed multithreading
Merge branch 'master' of https://github.com/happah-graphics/happah.git