Fixed loop compilation