fix "wait"