* fix race condition