fix bug: removing from io/waitingList only worked first time