fix: wait may be undefined