Fixing loopback concurrency bug