Fixing threading bug

Fixing threading bug where the value of the characteristic changes before the dispatch block is executed.