Fixes loops.