fixed WaitForMultipleObjects (waiting for random memory addresses did not work ;)