Fix threading non-termination issue