Fix potential risk of race condition