Try to protect against race condition