fix error helper and removed semaphore fro error helper