fix: race condition