MADS: Fix inter-frame wait loop