fixing config race condition