wait bug fixed