Strange error found and corrected.

When multiple instances of and object changes a static variable, that is used by another thread.. Then things can get complicated