Try to fix race condition.