error on multithreading

Hi,

missing a synchronized in the code :)