FIX: wrong loop level