fix for race condition