fix for SweepDevice with async callback