fixed some bad LOOP/GATE behavior

yes