FIX: race condition