fixing bugs. Compute MSE thread was not running in infinite loop