fix wait rule