Fixed a race condition with the WaitingFutureSelector class