possible bugfix for APParameterOptimizationMethod deadlock bug