Log attention, Fix concurrency bug