fix auto wait bug
fix auto wait bug