fix wait