deadlock coming from Elk fixed

Signed-off-by: loopasam <samuel.croset@gmail.com>