Fixed wait bug