fix results.getAll with wait example