fix for race condition that can cause too many request