fix bug involving opposite behavior in waitWhile'