Fixed possible race condition