fix race condition with the concurrent decorator