work around for race condition bug